package model;

public class LeaveTypeDTO {
	
	private int leaveTypeID;
    private String name;
    private double duration;

    public LeaveTypeDTO () {

    }

    public LeaveTypeDTO (int leaveTypeIDIn) {

    	this.leaveTypeID = leaveTypeIDIn;
    }

    public int getLeaveTypeID() {
		return leaveTypeID;
	}
	public void setLeaveTypeID(int leaveTypeID) {
		this.leaveTypeID = leaveTypeID;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public double getDuration() {
		return duration;
	}
	public void setDuration(double duration) {
		this.duration = duration;
	}
    public void setAll(int leaveTypeIDIn,
            String nameIn,
            double durationIn) {
            this.leaveTypeID = leaveTypeIDIn;
            this.name = nameIn;
            this.duration = durationIn;
      }

    public String toString() {
        StringBuffer out = new StringBuffer();
        out.append("leaveTypeID = " + this.leaveTypeID + "\n"); 
        out.append("name = " + this.name + "\n"); 
        out.append("duration = " + this.duration + "\n"); 
        return out.toString();
    }

}
